<?php session_start(); 

include_once('../config.inc');
include_once(ROOT.'/database/manage_open_api.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<link rel="stylesheet" type="text/css" href="../css/default.css"/>
		<style type="text/css">
			.manager {
				position:relative; float:left; left:200px; top:100px;
				height:50px; width:45%; height:50px;line-height:50px;
			}
			.manager li {
				position:relative; float:left;
				text-align:center; vertical-align:middle;
			}
			.clr { clear:both; }
    </style>
	</head>
	
	<script type="text/javascript">
		function sina_login()
		{
			window.open("/manage/open/sina/sina_login.php","SinaLogin","width=600,height=450,menubar=0,scrollbars=1, resizable=1,status=1,titlebar=0,toolbar=0,location=1");
		}
		function tencent_login()
		{
			window.open("/manage/open/tencent/tencent_login.php","TencentLogin","width=580,height=480,menubar=0,scrollbars=1, resizable=1,status=1,titlebar=0,toolbar=0,location=1");
		}
		function sohu_login()
		{
			window.open("/manage/open/sohu/sohu_login.php","SohuLogin","width=1000,height=700,menubar=0,scrollbars=1, resizable=1,status=1,titlebar=0,toolbar=0,location=1");
		}
		function netease_login()
		{
			window.open("/manage/open/netease/netease_login.php","SinaLogin","width=820,height=780,menubar=0,scrollbars=1, resizable=1,status=1,titlebar=0,toolbar=0,location=1");
		}
	</script>
	
	<body>
		<div class="manager">
			<ul>
				<li>
					<a onclick='sina_login()'><img src='open/img/sina_login_32x32.png'></a>
				</li>
				<li>
					已登录到：<?=manage_get_open_login(1)?>
				</li>
			</ul>
			<div class="clr"></div>
			<ul>
				<li>
					<a onclick='tencent_login()'><img src='open/img/tencent_login_32x32.png'></a>
				</li>
				<li>
					已登录到：<?=manage_get_open_login(2)?>
				</li>
			</ul>
			<div class="clr"></div>
			<ul>
				<li>
					<a onclick='sohu_login()'><img src='open/img/sohu_login_32x32.png'></a>
				</li>
				<li>
					已登录到：<?=manage_get_open_login(3)?>
				</li>
			</ul>
			<div class="clr"></div>
			<ul>
				<li>
					<a onclick='netease_login()'><img src='open/img/netease_login_32x32.png'></a>
				</li>
				<li>
					已登录到：<?=manage_get_open_login(4)?>
				</li>
			</ul>
			<div class="clr"></div>
			<ul>
				<form method="post" action="open/all/add_weibo.php">
					<input type="text" name="content" />
					<input type="submit" value="发布微博" />
				</form>
			</ul>
		</div><!-- div manager end  -->
		
	</body>
</html>